package org.itboys.core.entity.mongo;

import lombok.Data;
import org.itboys.mongodb.entity.BaseMongoEntity;
import org.mongodb.morphia.annotations.Entity;

/**
 * 作者：zzq
 * 时间：2018/10/23
 * 描述：购物车商品尺码
 */
@Data
@Entity(value = "SundayCartGoodsSize", noClassnameStored = true)
public class SundayCartGoodsSize extends BaseMongoEntity {
    private Long cartId;//购物车id
    private String goodsId;//商品id
    private String codeId;//尺码id
    private Integer num;//数量
    private Double price;//价格
    private String goodsCode;//商品code

    public SundayCartGoodsSize() {
    }

    public SundayCartGoodsSize(Long cartId, String goodsId, String codeId, Integer num, Double price,String goodsCode) {
        this.cartId = cartId;
        this.goodsId = goodsId;
        this.codeId = codeId;
        this.num = num;
        this.price = price;
        this.goodsCode=goodsCode;
    }
}
